package com.zxw.common.entity.gateway;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanxuewei
 * @since 2022-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_gateway")
public class GatewayEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 路由ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 路由名称
     */
    private String routeName;

    /**
     * 路由规则
     */
    private String routePattern;

    /**
     * 路由类型
     */
    private String routeType;

    /**
     * 路由URL
     */
    private String routeUrl;

    /**
     * Filters
     */
    private String filters;

    /**
     * 乐观锁
     */
    @Version
    private Long version;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 删除状态 : 1正常，0删除
     */
    @TableLogic
    private String status;


}
